package com.gtxc.kotlinmvvm.network.request

import com.aleyn.mvvm.base.IBaseResponse

/**
 * Created by houzhanlei
 * 2020/7/22
 * 为自己代码负责
 */

data class BaseResult<T>(
    val success: Boolean,
    val message: String,
    val resultObj: T?,


) : IBaseResponse<T?> {
    override fun code() = 0
    override fun msg() = message
    override fun data() = resultObj
    override fun isSuccess() =success
}